﻿namespace Citi.Scheduler.Domain
{
    public static class HistoryDetail
    {
        public const string CanceledNewExecution = "This execution was canceled because a new execution of the same routine was started by user (on demand) or by Citi Scheduler (scheduled routine).";
        public const string CanceledByUser = "This execution was canceled by user";
        public const string Started = "Routine: {0}. Version: {1}. The execution was started and now is running. Machine: {2}";
        public const string ReadingDllPath = "Routine: {0}. Information: DLL Path file is {1}";
        public const string DllNotFound = "Routine: {0}. DLL File was not found. Path file: {1}";
        public const string DllLoaded = "DLL was loaded successfully.";
        //public const string ClassNotFound = "Routine: {0}. There's no class named {1} in {2}";
        //public const string ReferencedAssemblyNotFound = "Routine: {0}. A referenced assembly was not found: {1}";
        //public const string FirstError = "Routine: {0}. \n Error: {1}. \n The system will try to recovery the process and it will be executed again.";
        //public const string WaitingForSecondExecution = "Routine: {0}. \n Scheduler will sleep for 10 seconds to try execute this routine again.";
        //public const string ErrorAfterTwoTentatives = "Routine: {0}. \n Error: {1}. \n  The process was killed after 2 tentatives";
        public const string ErrorRoutine = "Routine: {0}. \n Error: {1}. \n  The process was killed.";
        public const string InsertedBySystem = "The routine was inserted by Citi Scheduler in the execution queue.";
        public const string ExecutionFinished = "The execution was sucessfully finished.";
        public const string RollingBack = "Rolling back the process.";
        public const string RolledBack = "The process was rolled back.";
        public const string RolledBackError = "The rollback process throw an exception. {0}. \n Error: {1}";
        public const string Timeout = "Timeout. Estimated time: {0}. Acceptable variation: {1}%";
        public const string Error = "Routine {0}. An error occurred.  \n Error: {1}. ";
        public const string StartExternalCode = "Routine: {0}. Start method in External Assembly has been called.";
        //public const string RoutineBaseDllNotFound = "Routine: {0}. DLL Citi.RoutineBase was not found.";
        public const string RoutineBaseVersion = "Routine: {0}. Citi.RoutineBase Version: {1}";
        public const string TimeoutInformation = "Timeout for this routine is {0} seconds";
        public const string CopingFilesToTempFolder = "Coping files to temp folder.";
        public const string FilesCopiedToTempFolder = "Files copied to temp folder.";
        public const string DroppingTempFiles = "Dropping Temp Files";
        public const string TempFilesDropped = "Temp Files Dropped";
        public const string RecoveryError = "This routine will try to run again in {0} minutes.";
        public const string UnexpectedError = "An unexpected error occured and it broked the routine execution. Please check the source code.";
        public const string NoExecution = "No execution at {0}";
        public const string NoExecutionRoutineRunning = "No execution at {0}. This routine is already running on another machine";
        public const string NoEnoughtTimeToRun ="'{0}' is waiting for a free machine but '{1}' will run only on this one and Citi Scheduler won't have enough time to run both. Another machine will execute '{0}' soon.";
        public const string ExecutingRoutine = "Executing '{0}' at {1}. Id {2}";
        public const string UpdatingMachineAndStartDate = "Updating 'Starts On' and 'Machine Name'";
        public const string SetStoppedByUser = "This routine was stopped because an User has stopped 'Citi Scheduler Execution Service'";
        public const string ErrorOnDropTempFiles = "Error on drop temp files. {0}";
        public const string RoutineExecuteUser = "Routine will run as '{0}'";
        public const string ExecutionStarting = "Routine will start to run";
        public const string StoppedNewTentative = "After stop the Execution Service a new tentative will be set";
        public const string AlreadyRunning= "The routine is already running on another machine.";
    }
}